Skip to main content
DELETE
/
api
/
categorias
/
{nombre}
Delete Category
curl --request DELETE \
  --url https://api.example.com/api/categorias/{nombre}
{
  "204": {},
  "400": {},
  "401": {},
  "403": {},
  "404": {}
}

Authentication

Admin only - This endpoint requires admin authentication. Include an Authorization header with a valid admin bearer token:
Authorization: Bearer YOUR_ADMIN_TOKEN

Path Parameters

nombre
string
required
The name of the category to delete

Response

This endpoint returns no content on success (HTTP 204).

Request Example

curl -X DELETE https://api.iquea.com/api/categorias/Electronics \
  -H "Authorization: Bearer YOUR_ADMIN_TOKEN"

Status Codes

204
No Content
Category successfully deleted
401
Unauthorized
Missing or invalid authentication token
403
Forbidden
User does not have admin permissions
404
Not Found
Category with the specified name does not exist
400
Bad Request
Category cannot be deleted (e.g., has associated products)